<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Windsurf AI 开发工具集</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
            color: #e0e0e0;
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .card-hover {
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
            border-color: rgba(102, 126, 234, 0.5);
        }
        
        .code-block {
            background: rgba(0, 0, 0, 0.4);
            border-left: 4px solid #667eea;
            padding: 1.5rem;
            border-radius: 0.5rem;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 0.875rem;
            line-height: 1.5;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
            margin-bottom: 2rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }
        
        .tool-category {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 1rem;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .tool-item {
            background: rgba(255, 255, 255, 0.02);
            padding: 1.5rem;
            border-radius: 0.75rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }
        
        .tool-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(102, 126, 234, 0.3);
        }
        
        .param-badge {
            background: rgba(102, 126, 234, 0.2);
            color: #a5b4fc;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            display: inline-block;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .mermaid {
            background: transparent !important;
        }
        
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 0.8;
            margin: 0.1rem 0.5rem 0 0;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Noto Serif SC', serif;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="relative overflow-hidden py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-6xl font-bold mb-6">
                <span class="hero-gradient">Windsurf AI</span>
                <span class="text-white">开发工具集</span>
            </h1>
            <p class="text-2xl text-gray-300 mb-8 leading-relaxed">
                <span class="drop-cap">W</span>indsurf 是一个强大的 AI 辅助开发平台，提供了丰富的工具函数来增强开发体验。从浏览器自动化到代码搜索，从文件操作到项目部署，这套工具集涵盖了现代开发工作流的各个方面。
            </p>
            <div class="flex justify-center space-x-4 mt-12">
                <div class="card-hover px-6 py-3 rounded-lg">
                    <i class="fas fa-tools text-2xl text-purple-400"></i>
                    <span class="ml-2 text-lg">30+ 工具函数</span>
                </div>
                <div class="card-hover px-6 py-3 rounded-lg">
                    <i class="fas fa-code text-2xl text-blue-400"></i>
                    <span class="ml-2 text-lg">全栈开发支持</span>
                </div>
                <div class="card-hover px-6 py-3 rounded-lg">
                    <i class="fas fa-rocket text-2xl text-pink-400"></i>
                    <span class="ml-2 text-lg">一键部署</span>
                </div>
            </div>
        </div>
    </section>

    <!-- 工具架构图 -->
    <section class="py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <h2 class="section-title text-4xl font-bold text-white mb-12">工具架构概览</h2>
            <div class="card-hover p-8 rounded-xl">
                <div class="mermaid">
                    graph TB
                        A[Windsurf AI 工具集] --> B[浏览器自动化]
                        A --> C[文件系统操作]
                        A --> D[代码智能搜索]
                        A --> E[终端命令执行]
                        A --> F[Web 部署]
                        A --> G[内存管理]
                        
                        B --> B1[browser_preview<br/>预览服务器]
                        B --> B2[capture_browser_screenshot<br/>截图捕获]
                        B --> B3[get_dom_tree<br/>DOM 分析]
                        
                        C --> C1[view_file<br/>查看文件]
                        C --> C2[write_to_file<br/>创建文件]
                        C --> C3[replace_file_content<br/>编辑文件]
                        
                        D --> D1[codebase_search<br/>语义搜索]
                        D --> D2[grep_search<br/>模式匹配]
                        D --> D3[find_by_name<br/>文件查找]
                        
                        E --> E1[run_command<br/>执行命令]
                        E --> E2[command_status<br/>状态监控]
                        E --> E3[read_terminal<br/>读取输出]
                        
                        F --> F1[deploy_web_app<br/>应用部署]
                        F --> F2[check_deploy_status<br/>部署状态]
                        
                        G --> G1[create_memory<br/>创建记忆]
                        G --> G2[trajectory_search<br/>轨迹搜索]
                        
                        style A fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
                        style B fill:#4c1d95,stroke:#667eea,stroke-width:2px,color:#fff
                        style C fill:#4c1d95,stroke:#667eea,stroke-width:2px,color:#fff
                        style D fill:#4c1d95,stroke:#667eea,stroke-width:2px,color:#fff
                        style E fill:#4c1d95,stroke:#667eea,stroke-width:2px,color:#fff
                        style F fill:#4c1d95,stroke:#667eea,stroke-width:2px,color:#fff
                        style G fill:#4c1d95,stroke:#667eea,stroke-width:2px,color:#fff
                </div>
            </div>
        </div>
    </section>

    <!-- 工具分类展示 -->
    <section class="py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <h2 class="section-title text-4xl font-bold text-white mb-12">核心工具集</h2>
            
            <!-- 浏览器自动化工具 -->
            <div class="tool-category">
                <h3 class="text-2xl font-bold text-purple-400 mb-6">
                    <i class="fas fa-globe mr-3"></i>浏览器自动化工具
                </h3>
                <div class="grid md:grid-cols-2 gap-4">
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">browser_preview</h4>
                        <p class="text-gray-400 mb-3">启动 Web 服务器的浏览器预览，支持用户交互和控制台日志捕获。</p>
                        <div>
                            <span class="param-badge">Name: string</span>
                            <span class="param-badge">Url: string</span>
                        </div>
                    </div>
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">capture_browser_screenshot</h4>
                        <p class="text-gray-400 mb-3">捕获浏览器页面当前视口的截图。</p>
                        <div>
                            <span class="param-badge">PageId: string</span>
                        </div>
                    </div>
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">get_dom_tree</h4>
                        <p class="text-gray-400 mb-3">获取打开页面的 DOM 树结构，用于分析页面元素。</p>
                        <div>
                            <span class="param-badge">PageId: string</span>
                        </div>
                    </div>
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">open_browser_url</h4>
                        <p class="text-gray-400 mb-3">在 Windsurf 浏览器中打开指定 URL。</p>
                        <div>
                            <span class="param-badge">Url: string</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 文件系统操作工具 -->
            <div class="tool-category">
                <h3 class="text-2xl font-bold text-blue-400 mb-6">
                    <i class="fas fa-folder-open mr-3"></i>文件系统操作
                </h3>
                <div class="grid md:grid-cols-2 gap-4">
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">view_file</h4>
                        <p class="text-gray-400 mb-3">查看文件内容，支持指定行范围和文件摘要。</p>
                        <div>
                            <span class="param-badge">AbsolutePath: string</span>
                            <span class="param-badge">StartLine: integer</span>
                            <span class="param-badge">EndLine: integer</span>
                        </div>
                    </div>
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">write_to_file</h4>
                        <p class="text-gray-400 mb-3">创建新文件并写入内容，自动创建父目录。</p>
                        <div>
                            <span class="param-badge">TargetFile: string</span>
                            <span class="param-badge">CodeContent: string</span>
                        </div>
                    </div>
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">replace_file_content</h4>
                        <p class="text-gray-400 mb-3">编辑现有文件，支持多处非连续编辑。</p>
                        <div>
                            <span class="param-badge">TargetFile: string</span>
                            <span class="param-badge">ReplacementChunks: Array</span>
                        </div>
                    </div>
                    <div class="tool-item">
                        <h4 class="text-lg font-semibold text-white mb-2">list_dir</h4>
                        <p class="text-gray-400 mb-3">列出目录内容，包括文件大小和子目录信息。</p>
                        <div>
                            <span class="param-badge">DirectoryPath: string</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 代码搜索工具 -->
            <div class="tool-category">
                <h3 class="text-2xl font-bold text-green-400 mb-6">
                    <i class="fas fa-search mr-3"></i>代码智能搜索
                </h3>
                <div class="grid md:grid-cols-2 gap-4">
                    <div class="tool-item">
                        <h4 class